import pandas as pd
def status(x):
    value=[x.count()]
    index0=['总数']#['总数','均值','最小值','最小值位置','25%分位数', '50%分位数','75%分位数','最大值','最大值位数','中位数','众数','平均绝对偏差','方差','标准差','偏度','峰度','求和']
    index0.append("均值")
    try:
        value.append(x.mean())
    except Exception as e:
        value.append(pd.np.nan)
    index0.append("最小值")
    try:
        value.append(x.min())
    except Exception as e:
        value.append(pd.np.nan)
    index0.append("最小值位置")
    try:
        value.append(x.idxmin())
    except Exception as e:
        value.append(pd.np.nan)
    index0.append("25%分位数")
    try:
        value.append(x.quantile(0.25))
    except Exception as e:
        value.append(pd.np.nan)
    index0.append("50%分位数")
    try:
        value.append(x.quantile(0.5))
    except Exception as e:
        value.append(pd.np.nan)
    index0.append("75%分位数")
    try:
        value.append(x.quantile(0.75))
    except Exception as e:
        value.append(pd.np.nan)
    index0.append("最大值")
    try:
        value.append(x.max())
    except Exception as e:
        value.append(pd.np.nan)
    index0.append("最大值位数")
    try:
        value.append(x.idxmax())
    except Exception as e:
        value.append(pd.np.nan)
    index0.append("中位数")#['总数','均值','最小值','最小值位置','25%分位数', '50%分位数','75%分位数','最大值','最大值位数','中位数','众数','平均绝对偏差','方差','标准差','偏度','峰度','求和']
    try:
        value.append(x.median())
    except Exception as e:
        value.append(pd.np.nan)
    index0.append("众数")
    try:
        value.append(x.mode())
    except Exception as e:
        value.append(pd.np.nan)
    index0.append("平均绝对偏差")
    try:
        value.append(x.mad())
    except Exception as e:
        value.append(pd.np.nan)
    index0.append("方差")
    try:
        value.append(x.var())
    except Exception as e:
        value.append(pd.np.nan)
    index0.append("标准差")
    try:
        value.append(x.std())
    except Exception as e:
        value.append(pd.np.nan)
    index0.append("偏度")
    try:
        value.append(x.skew())
    except Exception as e:
        value.append(pd.np.nan)
    index0.append("峰度")
    try:
        value.append(x.kurt())
    except Exception as e:
        value.append(pd.np.nan)
    index0.append("求和")
    try:
        value.append(x.sum())
    except Exception as e:
        value.append(pd.np.nan)
    index0.append("大于0个数")
    try:
        value.append(len(x[x>0]))
    except Exception as e:
        value.append(pd.np.nan)
    index0.append("小于0个数")
    try:
        value.append(len(x[x<0]))
    except Exception as e:
        value.append(pd.np.nan)
    index0.append("0值个数")
    try:
        value.append(len(x[x==0]))
    except Exception as e:
        value.append(pd.np.nan)
    index0.append("正负比")
    try:
        value.append(len(x[x>0])/len(x[x<0]))
    except Exception as e:
        value.append(pd.np.nan)
    index0.append("正率")
    try:
        value.append(len(x[x>0])/len(x))
    except Exception as e:
        value.append(pd.np.nan)
    return pd.Series(value,index=index0)